package com.example.test.mapper;


import com.example.test.entity.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {
    @Select("select * from role;")
    List<Role> findAll();

    @Select("select * from role where role_id = #{role_id};")
    List<Role> findByRoleId(Integer role_id);
}
